package com.yxkj.syh.app.huarong.bean;

import chihane.jdaddressselector.model.City;
import chihane.jdaddressselector.model.County;
import chihane.jdaddressselector.model.Province;

/**
 * 创建者：SYH
 * 时间：2020/5/28 13:43
 * 编辑者：SYH、
 * 标签：
 * 补充说明：
 */
public class AreaPlus {
    private String provinceId;
    private String simpleName;
    private String lon;
    private String cityId;
    private String areaCode;
    private String remark;
    private String prePinYin;
    private String id;
    private String pinYin;
    private String parentId;
    private int level;
    private String areaName;
    private String simplePy;
    private String zipCode;
    private String countyId;
    private String lat;
    private String wholeName;
    private Province province;
    private City city;
    private County county;

    @Override
    public String toString() {
        return "AreaPlus{" +
                "provinceId='" + provinceId + '\'' +
                ", simpleName='" + simpleName + '\'' +
                ", lon='" + lon + '\'' +
                ", cityId='" + cityId + '\'' +
                ", areaCode='" + areaCode + '\'' +
                ", remark='" + remark + '\'' +
                ", prePinYin='" + prePinYin + '\'' +
                ", id='" + id + '\'' +
                ", pinYin='" + pinYin + '\'' +
                ", parentId='" + parentId + '\'' +
                ", level=" + level +
                ", areaName='" + areaName + '\'' +
                ", simplePy='" + simplePy + '\'' +
                ", zipCode='" + zipCode + '\'' +
                ", countyId='" + countyId + '\'' +
                ", lat='" + lat + '\'' +
                ", wholeName='" + wholeName + '\'' +
                ", province=" + province +
                ", city=" + city +
                ", county=" + county +
                '}';
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }

    public County getCounty() {
        return county;
    }

    public void setCounty(County county) {
        this.county = county;
    }

    public String getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }

    public String getSimpleName() {
        return simpleName;
    }

    public void setSimpleName(String simpleName) {
        this.simpleName = simpleName;
    }

    public String getLon() {
        return lon;
    }

    public void setLon(String lon) {
        this.lon = lon;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getPrePinYin() {
        return prePinYin;
    }

    public void setPrePinYin(String prePinYin) {
        this.prePinYin = prePinYin;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPinYin() {
        return pinYin;
    }

    public void setPinYin(String pinYin) {
        this.pinYin = pinYin;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getSimplePy() {
        return simplePy;
    }

    public void setSimplePy(String simplePy) {
        this.simplePy = simplePy;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    public String getCountyId() {
        return countyId;
    }

    public void setCountyId(String countyId) {
        this.countyId = countyId;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getWholeName() {
        return wholeName;
    }

    public void setWholeName(String wholeName) {
        this.wholeName = wholeName;
    }

    public int getShortID(){
        return (int) (Long.decode(id)/10000000000L);
    }

    public Province getProvince() {
        return province;
    }

    public void setProvince(Province province) {
        this.province = province;
    }
}
